package cn.openbiotoken.android;

import android.content.Context;
import android.net.Uri;

import androidx.annotation.NonNull;

import cn.openbiotoken.BiometricsFeatureExtractor;

public abstract class UriBiometricsFeatureExtractor<Feature> implements BiometricsFeatureExtractor<Feature> {

    public UriBiometricsFeatureExtractor(@NonNull final Context context, @NonNull final Uri uri) {
        super();
        this.context = context;
        this.uri = uri;
        this.uriBitmapHelper = new UriBitmapHelper(context, uri);
    }

    protected final @NonNull Context context;

    protected final @NonNull Uri uri;

    protected final @NonNull UriBitmapHelper uriBitmapHelper;

    @NonNull
    public Context getContext() {
        return context;
    }

    @NonNull
    public Uri getUri() {
        return uri;
    }

    @NonNull
    public UriBitmapHelper getUriBitmapHelper() {
        return uriBitmapHelper;
    }
}
